let str:string = 'hello';



let num:number = 123;

// num = 'hello'

//类型推断

let isLogin = true;

//联合类型

let params:string|number = '11';

params = 1;

let test = undefined;

test=true;

//定义数组

let arr:string[] = ['lili','1','lisi'];

let arr1:Array<string> = ['s','1']

// let arr2:any[] = ['a',true,1]

//元组  是一种特殊的数组
let tub1:[string,boolean,number] = ['a',true,1]

//枚举 枚举名：首字母必须大写

enum Sex{
    girl,
    boy,
    unkown
}



console.log(Sex.girl)

function fun(){

}
